﻿package dt.exchangeddata 
{
	import game.exchangeddata.BetInfo;
	/**
	 * ...
	 * @author Nguyen Thi Bich Phuong (Daisy)
	 */
	public class BetInfo extends game.exchangeddata.BetInfo {
		public var arrBettingCode:Array;
		public var arrBettingValue:Array;
		
		public function BetInfo() {		
			this.arrBettingCode = new Array("DtDWin", "DtTWin", "DtTie");
			this.arrBettingValue = new Array(0,0,0);
		}
		
		public function getTotalBet():Number {
			var total:Number = 0;
			for (var i:int = 0; i < this.arrBettingValue.length; i++) {
				total += this.arrBettingValue[i];
			}
			return total;
		}
		
		public function copy(obj:Object):void {		
			for (var i:int = 0; i < this.arrBettingCode.length; i++) {
				this.arrBettingValue[i] = obj.arrBettingValue[i];				
			}			
		}	
		
		public function resetValue():void {
			for (var i:int = 0; i < this.arrBettingCode.length; i++) {
				this.arrBettingValue[i] = 0;
			}
		}
	}

}